import { createApp } from 'vue'
import App from './App.vue'
import DiscoverMusic from './view/DiscoverMusic'
import ProjectHeader from './components/ProjectHeader'
import ProjectFooter from './components/ProjectFooter'
import BtmbarView from "./components/Btmbar";
import ToTop from "./components/ToTop";
import LoginView from "./components/LoginView";
import MusicPlay from "./components/MusicPlay";


// 引入路由
import router from './router/index'
// 引入vuex
import store from './store/index'
// 引入css初始化公共样式
import './style/reset.css'
// 引入element-ui
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

const app = createApp(App)
app.component("DiscoverMusic",DiscoverMusic)
app.component("ProjectHeader",ProjectHeader)
app.component("ProjectFooter",ProjectFooter)
app.component("BtmbarView", BtmbarView);
app.component("ToTop", ToTop);
app.component("LoginView", LoginView);
app.component("MusicPlay", MusicPlay);
app.use(router)
app.use(store)
app.use(ElementPlus)
app.mount('#app')


